home *** CD-ROM | disk | FTP | other *** search
- Path: phoenix.owl.de!not-for-mail
- Newsgroups: comp.sys.amiga.programmer
- References: <4ju8n4$8aq@marti.uji.es> <3162F136.5460@bailey.com>
- From: "Frank Wille" <frank@phoenix.owl.de>
- Date: Sat, 06 Apr 1996 21:37:40 +0200
- X-NewsReader: IntuiNews 1.3b Beta 3 (5.11.95)
- Subject: Re: New programmer wants help
- Message-ID: <42116755@phoenix.owl.de>
- Organization: Phantasm
-
- Robert Kilbertus wrote on Wed, 03 Apr 1996 16:44:22 -0500
- about "Re: New programmer wants help" :
-
-
- RK> Acereda Macia Jorge wrote:
- RK> >
- RK> > If you only need some example source, I think there're some examples
- RK> > taken from the Rom Kernal Manuals in Aminet. It's probably called
- RK> > *RKM*.lha :-) Look for it in the INDEX. There should be some
- RK> > examples dealing with messages and ports.
- RK> >
- RK>
- RK> There at least two examples of multitasking in Aminet that I know of.
- RK> They are in:
- RK>
- RK> dev/src/MultiTasking.lha
- RK> dev/src/RKMcompanion.lha
- RK>
- RK> If you are by chance using Manx C, compile and link the above examples
- RK> with the large-code and large-data options. Otherwise, they will not
- RK> execute properly. The default small code/data model used by Manx C
- RK> uses the A4 register to store the address of an intermediate jump
- RK> table. Spawned subtasks will not pick up this address without adding
-
- Certainly, there could be also a jump table in this area. It will
- be usually generated by the linker, when 16-bit/pc-relative jumps
- are out of range (automatic link vectors, ALV).
-
- But A4 always points to the the beginning or 32766 bytes behind the
- start address of the coalesced small data sections.
-
-
- RK> some extra assembly language code. I just thought I'd mention this
- RK> because it burned me bad a few years ago.
-
- The first command in such a function should be geta4(). It restores
- the value of the A4 register.
-
-
- -- _
- _ // Frank EMail: frank@phoenix.owl.de
- \X/ IRC: Phx @ #amiga(ger)
-
-